package com.ruoyi.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商户账户对象 t_account_info
 * 
 * @author ruoyi
 * @date 2024-02-26
 */
@Data
public class TAccountInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 账户余额。单位分 */
    @Excel(name = "账户余额。单位分")
    private Long balance;

    /** 冻结的金额。单位分 */
    @Excel(name = "冻结的金额。单位分")
    private Long frozenMoney;

    /** 已结算金额。单位分 */
    @Excel(name = "已结算金额。单位分")
    private Long settledMoney;

    /** 最近一次充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss")
    @Excel(name = "最近一次充值时间", width = 30, dateFormat = "yyyy-MM-dd  HH:mm:ss")
    private Date lastRecharge;

    /** 数据加密hash。防止数据被恶意篡改 */
    @Excel(name = "数据加密hash。防止数据被恶意篡改")
    private String securityHash;

    /** 随机加盐 */
    @Excel(name = "随机加盐")
    private String hashSalt;

    /** 是否冻结，默认否 */
    @Excel(name = "是否冻结，默认否")
    private Integer frozen;

    /** 今日收入 */
    @Excel(name = "今日收入")
    private Long todayIncome;

    /** 总收入 */
    @Excel(name = "总收入")
    private Long totalIncome;

    /** 今日交易 */
    @Excel(name = "今日交易")
    private Long todayMoney;

    /** 总交易 */
    @Excel(name = "总交易")
    private Long totalMoney;

    /** 今日支出 */
    @Excel(name = "今日支出")
    private Long todayExpend;

    /** 总支出 */
    @Excel(name = "总支出")
    private Long totalExpend;

    /**  */
    @Excel(name = "")
    private String ancestors;

    /**  */
    @Excel(name = "")
    private Long createUser;

    /**  */
    @Excel(name = "")
    private Long updateUser;

    private long operAmount;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBalance(Long balance)
    {
        this.balance = balance;
    }

    public Long getBalance()
    {
        return balance;
    }
    public void setFrozenMoney(Long frozenMoney) 
    {
        this.frozenMoney = frozenMoney;
    }

    public Long getFrozenMoney() 
    {
        return frozenMoney;
    }
    public void setSettledMoney(Long settledMoney) 
    {
        this.settledMoney = settledMoney;
    }

    public Long getSettledMoney() 
    {
        return settledMoney;
    }
    public void setLastRecharge(Date lastRecharge) 
    {
        this.lastRecharge = lastRecharge;
    }

    public Date getLastRecharge() 
    {
        return lastRecharge;
    }
    public void setSecurityHash(String securityHash) 
    {
        this.securityHash = securityHash;
    }

    public String getSecurityHash() 
    {
        return securityHash;
    }
    public void setHashSalt(String hashSalt) 
    {
        this.hashSalt = hashSalt;
    }

    public String getHashSalt() 
    {
        return hashSalt;
    }
    public void setFrozen(Integer frozen) 
    {
        this.frozen = frozen;
    }

    public Integer getFrozen() 
    {
        return frozen;
    }
    public void setTodayIncome(Long todayIncome) 
    {
        this.todayIncome = todayIncome;
    }

    public Long getTodayIncome() 
    {
        return todayIncome;
    }
    public void setTotalIncome(Long totalIncome) 
    {
        this.totalIncome = totalIncome;
    }

    public Long getTotalIncome() 
    {
        return totalIncome;
    }
    public void setTodayMoney(Long todayMoney) 
    {
        this.todayMoney = todayMoney;
    }

    public Long getTodayMoney() 
    {
        return todayMoney;
    }
    public void setTotalMoney(Long totalMoney) 
    {
        this.totalMoney = totalMoney;
    }

    public Long getTotalMoney() 
    {
        return totalMoney;
    }
    public void setTodayExpend(Long todayExpend) 
    {
        this.todayExpend = todayExpend;
    }

    public Long getTodayExpend() 
    {
        return todayExpend;
    }
    public void setTotalExpend(Long totalExpend) 
    {
        this.totalExpend = totalExpend;
    }

    public Long getTotalExpend() 
    {
        return totalExpend;
    }
    public void setAncestors(String ancestors) 
    {
        this.ancestors = ancestors;
    }

    public String getAncestors() 
    {
        return ancestors;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("balance", getBalance())
            .append("frozenMoney", getFrozenMoney())
            .append("settledMoney", getSettledMoney())
            .append("lastRecharge", getLastRecharge())
            .append("securityHash", getSecurityHash())
            .append("hashSalt", getHashSalt())
            .append("frozen", getFrozen())
            .append("todayIncome", getTodayIncome())
            .append("totalIncome", getTotalIncome())
            .append("todayMoney", getTodayMoney())
            .append("totalMoney", getTotalMoney())
            .append("todayExpend", getTodayExpend())
            .append("totalExpend", getTotalExpend())
            .append("ancestors", getAncestors())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
